import request from '@/utils/request'

// 查询生产领料列表
export function listProductionPicking(query) {
  return request({
    url: '/system/ProductionPicking/list',
    method: 'get',
    params: query
  })
}

// 查询工单详细
export function getProductionPickingList(params) {
  return request({
    url: '/system/ProductionPicking/query',
    method: 'get',
    params: {
      id: params.id,
    }
  })
}


// 查询生产领料详细
export function getProductionPicking(id) {
  return request({
    url: '/system/ProductionPicking/' + id,
    method: 'get'
  })
}

// 新增生产领料
export function addProductionPicking(data) {
  return request({
    url: '/system/ProductionPicking',
    method: 'post',
    data: data
  })
}

// 修改生产领料
export function updateProductionPicking(data) {
  return request({
    url: '/system/ProductionPicking',
    method: 'put',
    data: data
  })
}

// 删除生产领料
export function delProductionPicking(id) {
  return request({
    url: '/system/ProductionPicking/' + id,
    method: 'delete'
  })
}
